﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

using Weazel.NativeMath;
using Microsoft.VisualStudio.TestTools.UnitTesting;

#endregion

namespace Weazel.NativeMath.Test
{
	[TestClass]
	public class TestSignedMultiplication
	{
		[TestMethod]
		public void TestSignedMultiplication_1()
		{
			Integer a = new Integer(8, 0, true);
			Integer b = new Integer(8, 1, true);
			Assert.AreEqual("0", (a * b).ToDecimalString());
		}

		[TestMethod]
		public void TestSignedMultiplication_2()
		{
			Integer a = new Integer(8, 10, true);
			Integer b = new Integer(8, 10, true);
			Assert.AreEqual("100", (a * b).ToDecimalString());
		}

		[TestMethod]
		public void TestSignedMultiplication_3()
		{
			Integer a = new Integer(8, -10, true);
			Integer b = new Integer(8, -10, true);
			Assert.AreEqual("100", (a * b).ToDecimalString());
		}

		[TestMethod]
		public void TestSignedMultiplication_4()
		{
			Integer a = new Integer(8, -10, true);
			Integer b = new Integer(8, 10, true);
			Assert.AreEqual("-100", (a * b).ToDecimalString());
		}
	}
}
